package com.qf.weekexam.ex;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
public class UserException extends RuntimeException{

    private String code; // 异常编号，例如，001代表用户名重复

    private String msg;  // 异常的自定义消息
}
